﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo02
{
    class Hero
    {
        private string heroName;
        private string heroInfo;
        private string nickName;
        private int attack;
        private int defence;
        private int speed;
        public void Hello()
        {
            Console.WriteLine("{0},{1},{2},{3},{4},{5}", this.heroName, this.heroInfo, this.nickName, this.attack, this.defence, this.speed);
        }
        public string HeroName
        {
            get { return this.heroName; }
            set { this.heroName = value; }
        }
        public string HeroInfo
        {
            get { return this.heroInfo; }
            set { this.heroInfo = value; }
        }
        public string NickName
        {
            get { return this.nickName; }
            set { this.nickName = value; }
        }
        public int Attack
        {
            get { return this.attack; }
            set { this.attack = value; }
        }
        public int Defence
        {
            get { return this.defence; }
            set { this.defence = value; }
        }
        public int Speed
        {
            get { return this.speed; }
            set { this.speed = value; }
        }
    }
}
